﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" CodeBehind="Custom_Modify.aspx.cs" Inherits="WebUI.Admin.Custom.Custom_Modify" %>

<asp:Content ID ="Content1" ContentPlaceHolderID ="ContentPlaceHolder1" runat="server">
<table>
        <tr>
            <td style="width: 106px">
                客户编号：</td>
            <td style="width: 101px; text-align: left">
                <asp:Label ID="labCustomSn" runat="server"></asp:Label></td>
        </tr>
        <tr>
            <td style="width: 106px; height: 26px;">
                客户姓名：</td>
            <td style="width: 101px; height: 26px;">
                <asp:TextBox ID="txtPersonName" runat="server" ReadOnly="True"></asp:TextBox>
               </td>
                    <td style="text-align:left;"> &nbsp;<asp:RequiredFieldValidator ID="RFValidatorPersonName" runat="server" ControlToValidate="txtPersonName"
                    ErrorMessage="*">请输入客户姓名</asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td style="width: 106px">
                所在公司：</td>
            <td style="width: 101px; text-align: left">
                <asp:TextBox ID="txtDepartment" runat="server"></asp:TextBox>
                </td>
                    <td style="text-align:left;">
                        &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 106px">
                联系电话：</td>
            <td style="width: 101px">
                <asp:TextBox ID="txtTel" runat="server"></asp:TextBox>
                </td>
                    <td style="text-align:left;"><asp:RegularExpressionValidator ID="REValidatorTel" runat="server" ControlToValidate="txtTel"
                    ErrorMessage="*" ValidationExpression="^(0[0-9]{2,3}\-)?([2-9][0-9]{6,7})+(\-[0-9]{1,4})?$">请输入正确的联系电话</asp:RegularExpressionValidator>
                </td>
        </tr>
                <tr>
            <td style="width: 106px">
                联系地址：</td>
            <td style="width: 101px">
                <asp:TextBox ID="txtAddress" runat="server"></asp:TextBox>
                </td>
                    <td style="text-align:left;"><asp:RequiredFieldValidator ID="RFValidatorAddress" runat="server" ControlToValidate="txtAddress"
                    ErrorMessage="*">请输入联系地址</asp:RequiredFieldValidator>
                </td>
        </tr>
        <tr>
            <td style="width: 106px">
                电子邮箱：</td>
            <td style="width: 101px; text-align: left">
                <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>
                </td>
                    <td style="text-align:left;"><asp:RegularExpressionValidator ID="REValidatorEmail" runat="server" ControlToValidate="txtEmail"
                     ErrorMessage="*" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">请输入电子邮箱</asp:RegularExpressionValidator>
                </td>
        </tr>
        <tr>
            <td style="width: 106px; height: 24px;">
                传真：</td>
            <td style="width: 101px; text-align: left; height: 24px;">
                <asp:TextBox ID="txtFax" runat="server"></asp:TextBox>
               </td>
                    <td style="text-align:left;"> <asp:RegularExpressionValidator ID="REValidatorFax" runat="server" ControlToValidate="txtFax"
                    ErrorMessage="*" ValidationExpression="^((\(\d{3}\))|(\d{3}\-))?13[0-9]\d{8}|15[89]\d{8}$">请输入正确的传真</asp:RegularExpressionValidator>
                </td>
        </tr>
        <tr>
            <td style="width: 106px">
                备注：</td>
            <td style="width: 101px; text-align: left">
                <asp:TextBox ID="txtNode" runat="server"></asp:TextBox>
               
                </td>
                <td style="text-align:left;"> &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 106px">
                <asp:Label ID="labCustomGrade" runat="server" Text="客户积分" Visible="False"></asp:Label></td>
            <td style="width: 101px; text-align: left">
                <asp:TextBox ID="txtCustomGrade" runat="server" Visible="False"></asp:TextBox>
                
                </td>
                <td style="text-align:left;"><asp:RequiredFieldValidator ID="RFValidatorCustomGrade" runat="server" ControlToValidate="txtCustomGrade"
                    ErrorMessage="*">积分不能为空！</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="REValidatorCustomGrade" runat="server" ControlToValidate="txtCustomGrade"
                    ErrorMessage="*" ValidationExpression="\d*">请输入整数！</asp:RegularExpressionValidator></td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:Button ID="btnModify" runat="server" OnClick="btnModify_Click" Text="保存" />
                <asp:Button ID="btnReset" runat="server" OnClick="btnReset_Click" Text="重置" /></td>
        </tr>
    </table>
</asp:Content>

